<?php

class ProductController extends TN_Controller_Action
{
    public function indexAction()
    {
    	$request = $this->_request->getParams();
    	$category = MD_ProductCategory::getCategoryById($request['id']);
        $this->view->title = "Men&uacute; - ".$category['name'];
        $this->view->image = $category['image'];
        $this->view->contentTitle = $category['name'];
        $this->view->content = $category['description'];
        $this->view->products = MD_Product::getProductsByCategory($category['id']);   
    }
}
?>